﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Cors.Infrastructure;
using System.ComponentModel;

namespace Bridge.System.Domain
{
    [Comment("系统邮件")]
    [Table("t_sys_email")]
    public class SysEmail : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public SysEmail() { }

        public SysEmail(Guid key)
        {
            this.Id = key;
        }

        [Comment("")]
       public string EmailId { get;set; }

        [Comment("")]
        public string Subject { get;set; }

        public string From { get;set; }

        public bool IsRead { get; set; }

        public bool HasAttachments { get; set; }

        public string TextBody { get; set; }

        public string HtmlBody { get; set; }

        public string AttachmentUrl { get; set; }

        public string AttachmentFileName { get; set; }
        public bool IsDeleted { get; set; }

        public Guid? TenantId { get; set; }
    }
}
